/*
 *
 * @ProjectName:    my_umi_app
 * @Package:
 * @ClassName:      bloc_basic_footer
 * @Description:    全局底部
 * @Author:         SuPeiSen
 * @CreateDate:     2021/3/4 5:13 下午
 * @UpdateDate:     2021/3/4 5:13 下午
 * @UpdateRemark:   更新说明：
 * @Version:        1.0
 */

import { openUrl } from '@/utils/app_fun';
import React from 'react';
import './style/footer_style.less';
import { history } from '@@/core/history';

export const BlocBasicFooter = (icpNum: string) => {
  // 跳转到博主简介
  const toBloggerContent = (route: string) => {
    history.push({
      pathname: route,
    });
  };

  return (
    <div className={'footer_main'}>
      <div
        onClick={() => openUrl('https://beian.miit.gov.cn/#/Integrated/index')}
      >
        {icpNum}
      </div>
      <div onClick={() => toBloggerContent('/blog/user/blogger')}>博客介绍</div>
      <div onClick={() => toBloggerContent('/blog/blog_message/list')}>
        留言板
      </div>
    </div>
  );
};
